﻿import route from 'mock/route';

export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  {
    path: '/banner',
    name: 'banner',
    icon: '',
    component: './Banner',
    access: 'access',
  },
  {
    path: '/productCategory',
    name: 'productCategory',
    icon: '',
    component: './ProductCategory',
    access: 'access',
  },
  {
    path: '/productType',
    name: 'productType',
    icon: '',
    component: './ProductType',
    access: 'access',
  },
  {
    path: '/product',
    name: 'product',
    icon: '',
    component: './Product',
  },
  {
    path: '/saleChannel',
    name: 'saleChannel',
    icon: '',
    component: './SaleChannel',
  },
  {
    path: '/feedback',
    name: 'feedback',
    icon: '',
    component: './Feedback',
  },
  {
    path: '/account/settings',
    name: 'settings',
    icon: '',
    component: './Settings',
    hideInMenu: 'true',
    access: 'access',
  },

  {
    path: '/order',
    name: 'order',
    icon: '',
    component: './Order',
  },
  {
    path: '/order/orderInfo',
    name: 'orderInfo',
    icon: '',
    component: './Order/info',
    parentKeys: ['order'],
    hideInMenu: true,
  },
  {
    component: './404',
  },
];
